<div>
    生命周期
    <br>
    {{msg}}
</div>

<button (click)="changeMsg()">改变msg的值</button>
